This example demonstrates how to define non-spherical particles (a spheroid, a cylinder and a custom particle defined by an STL file).
Click here to download the Python script and here to download the STL file for the cube.
here